FirmwareVersion

abstract class FirmwareVersion : Comparable<T>

Represents a device's firmware version.

Types

Link copied to clipboard
enum Type
Firmware version type.

Functions

Link copied to clipboard
abstract fun compareTo(p: T): Int
Link copied to clipboard
@IntRange(from = 0)
abstract fun getBuildNumber(): Int
Gets the build number of the firmware version.
Link copied to clipboard
@IntRange(from = 0)
abstract fun getMajor(): Int
Gets the major identifier of the firmware version.
Link copied to clipboard
@IntRange(from = 0)
abstract fun getMinor(): Int
Gets the minor identifier of the firmware version.
Link copied to clipboard
@IntRange(from = 0)
abstract fun getPatchLevel(): Int
Gets the patch level of the firmware version.
Link copied to clipboard
Gets the firmware version type.
Link copied to clipboard
open fun parse(@NonNull versionString: String): FirmwareVersion
Converts a formatted version string to a FirmwareVersion.